import type { Sequelize } from "sequelize";
import db from "./db";
import { User, UserAttributes } from "./schemas/user";

export function initModels (sequelize: Sequelize) {
  User.initModel(sequelize);
}

initModels(db);

type DBModel = User;

// TODO: 添加表之间关联关系

export {
  User
};

export type {
  DBModel,
  UserAttributes
};
